<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>信贷一站通</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link href="favicon.ico" rel="shortcut icon" />

		<link rel="stylesheet" href="css/mui.css?v=002">
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="css/app.css?v=002"/>
		<style>
			html,body { background-color: white; }
			.title { margin: 2px 15px 10px; color: #6d6d72; font-size: 15px;border-left: solid 5px #002ba5;padding: 0 5px;}
		</style>
	</head>

	<body>
		<!-- <header class="mui-bar mui-bar-nav" style="background: #0885a2;color: #fff;">
			<h1 id="title" class="mui-title" style="color: #fff;">信贷金融在线</h1>
		</header> -->
		<div class="mui-content">
			<!--banner轮播-->
			<div id="slider" class="mui-slider">
					<div class="mui-slider-group mui-slider-loop">
							<!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
							<div class="mui-slider-item mui-slider-item-duplicate">
								<a href="#"> <img src="images/banner4.jpg"></a>
							</div>
							<div class="mui-slider-item"><a href="#"><img src="images/banner1.jpg"></a></div>
							<div class="mui-slider-item"><a href="#"><img src="images/banner2.jpg"></a></div>
							<div class="mui-slider-item"><a href="#"><img src="images/banner3.jpg"></a></div>
							<div class="mui-slider-item"><a href="#"><img src="images/banner4.jpg"></a></div>
							<!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
							<div class="mui-slider-item mui-slider-item-duplicate">
								<a href="#"> <img src="images/banner1.jpg"></a>
							</div>
					</div>
						<div class="mui-slider-indicator">
						<div class="mui-indicator mui-active"></div>
						<div class="mui-indicator"></div>
						<div class="mui-indicator"></div>
						<div class="mui-indicator"></div>
					</div>
			</div>
			<!--9宫菜单-->
			<div class="">
					<ul class="mui-table-view mui-grid-view mui-grid-9">
						<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
							<a href="#" addr="modules/new-list.html?nav=kkzq">
								<img class="mui-menu" src="images/kkzq-icon.png"/> <div class="mui-media-body">快卡专区</div>
							</a>
						</li>
						<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
							<a href="#" addr="modules/new-list.html?nav=dkzq">
								<img class="mui-menu" src="images/dkzq-icon.png"/><div class="mui-media-body">贷款专区</div>
							</a>
						</li>
						<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
							<a href="#" addr="modules/new-list.html?nav=tezq">
								<img class="mui-menu" src="images/tezq-icon.png"/><div class="mui-media-body">提额专区</div>
							</a>
						</li>
						<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
							<a href="#" addr="modules/new-list.html?nav=hkzq">
								<img class="mui-menu" src="images/hhzq-icon.png"/><div class="mui-media-body">黑户专区</div>
							</a>
						</li>
						<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
							<a href="#" addr="modules/news_show.html?articleCode=hhxb">
								<img class="mui-menu" src="images/hhxb-icon.png"/><div class="mui-media-body">黑户洗白</div>
							</a>
						</li>
						<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
							<a href="#" addr="http://jishu.51kuaika.com/">
								<img class="mui-menu" src="images/zxkz-icon.png"/><div class="mui-media-body">最新口子</div>
							</a>
						</li>
						<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
							<a href="#" addr="modules/news_show.html?articleCode=ykzq">
								<img class="mui-menu" src="images/ykgl-icon.png"/><div class="mui-media-body">养卡攻略</div>
							</a>
						</li>
						<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
							<a href="#" addr="modules/news_show.html?articleCode=xr-zysx">
								<img class="mui-menu" src="images/xrbk-icon.png"/><div class="mui-media-body">新人必看</div>
							</a>
						</li>
						<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
							<a href="#" addr="">
								<img class="mui-menu" src="images/znbk-icon.png"/><div class="mui-media-body">智能办卡</div>
							</a>
						</li>
					</ul>
			</div>
			<div class="title">
				最新更新<a href="https://tv.sohu.com/v/dXMvMjg0MDE2ODIyLzg5ODcwODQ1LnNodG1s.html"> 金融信贷在线视频教学</a>
			</div>
			<ul class="mui-table-view mui-list-view">
			</ul>
		</div>
		<!-- 底部菜单 -->
		<nav class="mui-foot-bar">
				
		</nav>
		<script src="js/mui.min.js"></script>
		<script src="js/jquery-3.3.1.min.js"></script>
		<script src="js/frame-utils.min.js"></script>
		<script src="js/frame-setting.min.js?v=004"></script>
		<script type="text/javascript" charset="utf-8">
			(function(mui, window) {
					//var self = plus.webview.currentWebview();
					//var token = self.token;
					//alert(token);
					mui.init();//mui初始化
					
					//定时轮换
					mui("#slider").slider({
						interval: 5000
					});
							
					loadList();
					//取当前会员id
					//get(serverUrl + memberIdApi,function(rsp){});
					
					//加载底部菜单
					$(".mui-foot-bar").load('layout/foot.html', function(){
						//首页
						$("#home").attr("href", contextName + "/index.html");
						//常用工具
						$("#tools").attr("href", contextName + "/modules/tools_list.html");
					});
						
					//9宫格
					mui(".mui-grid-view").on('tap','a',function(){
							var addr = this.getAttribute("addr");
							if(isEmpty(addr)){
                                mui.alert("功能暂未开放！", '提示', function() {});
                                return;
							}
							openPage("NewsList", addr);
							//console.log("addr--"+addr);
					});
			})(mui, window);
			
			//加载列表
			function loadList() {
				var url = serverUrl + topListApi + "?showCount=30&pageNo=1";
				get(url, null, function(rsp) {
					//console.log(rsp)
					if (!rsp.status) {
						mui.alert(rsp.msg, '提示', function() {});
						return;
					}
					$(".mui-list-view").empty();
					mui.each(rsp.data.data, function(index, article) {
						var html = "<li class=\"mui-table-view-cell mui-media\">" +
							"	<a href=\"javascript:;\" url=\"" + article.url + "\" articleId=\"" + article.articleId +
							"\" articleType=\"" + article.articleType + "\">" +
							"		<img class=\"mui-media-object mui-pull-left\" src=\"" + article.articleImg + "\">" +
							"		<div class=\"mui-media-body\">" +
							//"			" + article.title + " " +
							"			<p class='mui-ellipsis' style='margin-top: 12px;'>" + article.title + " </p>" +
							"		</div>" +
							"	</a>" +
							"</li>";
						$(".mui-list-view").append(html);
					});
					//详情
					showDetail();
				});
			}
			//打开文章详情
			function showDetail() {
				mui(".mui-list-view").on('tap', 'a', function() {
					var articleId = this.getAttribute("articleId");
					var articleType = this.getAttribute("articleType");
					
					var showUrl = contextName + "/modules/news_show.html?key=" + articleId;
					if (articleType == 1) { // 外链
						showUrl = this.getAttribute("url");
					}
					openPage("ArticleShow", showUrl);
				});
			}
		</script>
	</body>

</html>
